<template>
	<view class="home">
		<view class="contentItem" v-for="(item,index) in iconClassify" :key="index">
			<view class="title">
				<view class="titleName">
					{{item.title}}
				</view>
			</view>
			<view class="contentArr">
				<navigator :url="item2.url" class="iconItem" v-for="(item2,index2) in item.contentArr" @click="goPage(item2)" :key="index2">
					<view class="image">
						<image style="width: 100rpx;height: 100rpx;" :src="item2.icon" mode="aspectFill"></image>
					</view>
					<view class="name">
						{{item2.name}}
					</view>
				</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				iconClassify:[
					{
						title:'基础类',
						contentArr:[
							{name:'客户群发',icon:'/static/img/customerGroup.png',url:'../customerGroup/customerGroup'},
							{name:'客户群群发',icon:'/static/img/customersGroup.png',url:'../customersGroup/customersGroup' },
							{name:'欢迎语',icon:'/static/img/welcomeSpeech.png',url:'../welcomeSpeech/index' },
							// {name:'商品册',icon:'/static/img/goodsVolume.png',url:'' },
						]
					},
					// {
					// 	title:'营销类',
					// 	contentArr:[
					// 		{name:'活动',icon:'/static/img/activity.png',url:`../activeAndDocument/activeAndDocument?index=1` },
					// 		{name:'文案',icon:'/static/img/copyWriter.png',url:`../activeAndDocument/activeAndDocument?index=2` },
					// 	]
					// },
					{
						title:'管理',
						contentArr:[
							{name:'客群管理',icon:'/static/img/customerManagement.png',url:'../customersManagement/customersManagement' },
							{name:'客户时间轴',icon:'/static/img/timeLine.png',url:'../customerTimeline/customerTimeline' },
							// {name:'朋友圈',icon:'/static/img/CircleOfFriends.png',url:'' },
							// {name:'客户标签',icon:'/static/img/customerTag.png',url:'' },
						]
					}
				]
			}
		},
		onLoad() {

		},
		methods: {
			goPage(_item){
				console.log(_item);
			},
		}
	}
</script>

<style lang="scss" scoped>
	/deep/ .navigator-hover{
		background-color: transparent !important;
	}
	
	
	.home {
		background-color: #fff;
		width: 100%;
		.contentItem {
		  .title {
			  display: flex;
			  justify-content: space-between;
			  padding: 20rpx;
			  color: #111111;
				.titleName {
					font-weight: 600;
					font-size: 30rpx;
					margin-left: 30rpx;
					position: relative;
				}
				.titleName::before{
					content: '';
					position: absolute;
					left: -25%;
					top: 15%;
					width: 4rpx;
					height: 28rpx;
					background: #2772FE;
				}
		  }
		
		  .contentArr {
			  display: flex;
			  width: 100%;
			  margin-bottom: 30rpx;
		    .iconItem {
				width: 25%;
				display: grid;
				place-items: center;
		      .image {
		        image {
		  
		        }
		      }
		  
		      .name {
				  margin-top: 15rpx;
				color: #444444;
		      }
		    }
		  }
		}
		 
		
	}
</style>
